﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListNews.ascx.cs" Inherits="company_present.ListNews" %>

<div class="aboutus" id="gallery">
[<asp:HyperLink runat="server" Text="Thêm tin" ID="AddNew" CssClass="actionlink" />]
<asp:Repeater runat="server" ID="NewList">
    <ItemTemplate>
        <div class="content-one">
            <a href='<%#ReWriteUrl(Eval("ID").ToString(),Eval("Title").ToString()) %>'>
                <img src='<%# UrlImage(Eval("img").ToString()) %>' width="150" height="120" />
            </a>
            <p class="aboutus-info">
            <%#Server.HtmlDecode(Eval("description").ToString()) %>
            </p>
            <a href='<%#ReWriteUrl(Eval("ID").ToString(),Eval("Title").ToString()) %>' class="bt-readmore">
               </a>
            <div class="clear">
            </div>
        </div>
        <asp:Panel runat="server" Visible='<%#DotNetNuke.Common.Globals.IsEditMode()%>'>
            [ <a href='<%#EditUrl("","","EditNews","NewsId="+Eval("ID").ToString()) %>' class="actionlink">Sửa</a>
            ] [ <a href='<%#EditUrl("","","Delete","NewsId="+Eval("ID").ToString()) %>' class="actionlink">Xóa bài này</a>
            ]
        </asp:Panel>
    </ItemTemplate>
    <SeparatorTemplate>
        <div class="line3">
        </div>
    </SeparatorTemplate>
</asp:Repeater>
<div class="clear">
</div>
<div class="pager">
    <asp:Literal ID="pnPaging" runat="server"></asp:Literal>
</div>
</div>